package cn.tianjindong.blog_portal.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;



@Controller
public class PageController {
	
	/**
	 * 跳转验证码页面
	 * 
	 * @return
	 */
	@RequestMapping("/validatecode.action")
	public String toValiadatecodePage() {
		return "/validatecode";
	}
	
	/**
	 * 前往首页
	 * @return
	 */
	@RequestMapping("/index.html")
	public String toIndexPage(){
		return "/index";
	}
	
	/**
	 * 前往404页面
	 * @return
	 */
	@RequestMapping("/*.html")
	public String toNotFoundPage(){
		return "/404";
	}
	
}
